package com.hassean.we.admin.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yajun
 * @since 2019-03-29
 */
@TableName("tb_rescue_team")
public class TbRescueTeam extends Model<TbRescueTeam> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "rescue_team_id", type = IdType.AUTO)
    private Long rescueTeamId;
    @TableField("department_name")
    private String departmentName;
    private String provinces;
    private String municipalities;
    private String districts;
    @TableField("town_street")
    private String townStreet;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("add_time")
    private Date addTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("update_time")
    private Date updateTime;
    private String temp;
    private Long status;
    private String remark;
    @TableField("advance_text")
    private String advanceText;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("advance_date")
    private Date advanceDate;
    @TableField("del_flag")
    private String delFlag;
    @TableField("department_id")
    private Long departmentId;


    public Long getRescueTeamId() {
        return rescueTeamId;
    }

    public void setRescueTeamId(Long rescueTeamId) {
        this.rescueTeamId = rescueTeamId;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getProvinces() {
        return provinces;
    }

    public void setProvinces(String provinces) {
        this.provinces = provinces;
    }

    public String getMunicipalities() {
        return municipalities;
    }

    public void setMunicipalities(String municipalities) {
        this.municipalities = municipalities;
    }

    public String getDistricts() {
        return districts;
    }

    public void setDistricts(String districts) {
        this.districts = districts;
    }

    public String getTownStreet() {
        return townStreet;
    }

    public void setTownStreet(String townStreet) {
        this.townStreet = townStreet;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getTemp() {
        return temp;
    }

    public void setTemp(String temp) {
        this.temp = temp;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAdvanceText() {
        return advanceText;
    }

    public void setAdvanceText(String advanceText) {
        this.advanceText = advanceText;
    }

    public Date getAdvanceDate() {
        return advanceDate;
    }

    public void setAdvanceDate(Date advanceDate) {
        this.advanceDate = advanceDate;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }
    public Long getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Long departmentId) {
        this.departmentId = departmentId;
    }
    @Override
    protected Serializable pkVal() {
        return this.rescueTeamId;
    }

    @Override
    public String toString() {
        return "TbRescueTeam{" +
                ", rescueTeamId=" + rescueTeamId +
                ", departmentName=" + departmentName +
                ", provinces=" + provinces +
                ", municipalities=" + municipalities +
                ", districts=" + districts +
                ", townStreet=" + townStreet +
                ", addTime=" + addTime +
                ", updateTime=" + updateTime +
                ", temp=" + temp +
                ", status=" + status +
                ", remark=" + remark +
                ", advanceText=" + advanceText +
                ", advanceDate=" + advanceDate +
                ", delFlag=" + delFlag +
                ", departmentId=" + departmentId +
                "}";
    }
}
